package com.faithbj.process;

import com.faithbj.common.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * User: xiongyuanwei
 * Date: 12-7-19
 * Time: 下午11:14
 */
@Component
public class StreetRegionIdsConditionFactory {

    @Autowired
    private RegionService regionService;

    public StreetRegionIdsCondition create(String regionId) {
        List<String> streets = regionService.getStreetRegionIdById(regionId);
        return new StreetRegionIdsCondition(streets);
    }
}
